#ifndef PAKETITEM_H
#define PAKETITEM_H

#include <QTreeWidgetItem>
#include "remiitem.h"

class PaketItem : public QObject, public QTreeWidgetItem
{
    Q_OBJECT
public:
    explicit PaketItem(QObject *parent = 0, int id=-1);

    int getID() const;
    void setID(int id);

    void addRemi(RemiItem *item);
    QList<RemiItem*> getRemiItems();

    void removeChild(QTreeWidgetItem *child);
    void addChild(QTreeWidgetItem *child);
    
public slots:
    void deleteRemi(RemiItem *item);
    void updateOverview();

private:
    int id;
    QList<RemiItem*> remis;
};

#endif // PAKETITEM_H
